home *** CD-ROM | disk | FTP | other *** search
/ Programming in Microsoft Windows with C# / Programacion en Microsoft Windows con C#.iso / Codigo / Control del ratón / CheckerWithChildrenAndFocus / CheckerWithChildrenAndFocus.cs < prev    next >
Encoding:
Text File  |  2002-04-18  |  896 b   |  30 lines

  1. //----------------------------------------------------------
  2. // CheckerWithChildrenAndFocus.cs ⌐ 2001 by Charles Petzold
  3. //----------------------------------------------------------
  4. using System;
  5. using System.Drawing;
  6. using System.Windows.Forms;
  7.  
  8. class CheckerWithChildrenAndFocus: CheckerWithChildren
  9. {
  10.      public new static void Main()
  11.      {
  12.           Application.Run(new CheckerWithChildrenAndFocus());
  13.      }
  14.      public CheckerWithChildrenAndFocus()
  15.      {
  16.           Text = "Marcador con secundarios y enfoque";
  17.      }
  18.      protected override void CreateChildren()
  19.      {
  20.           acntlChild = new CheckerChildWithFocus[yNum, xNum];
  21.  
  22.           for (int y = 0; y < yNum; y++)
  23.           for (int x = 0; x < xNum; x++)
  24.           {
  25.                acntlChild[y, x] = new CheckerChildWithFocus();
  26.                acntlChild[y, x].Parent = this;
  27.           }
  28.      }
  29. }
  30.